package InstanceHandling;

import java.util.ArrayList;
import java.util.List;

import Entities.Entity;
import FileHandling.XMLFileReader;

public class Dungeon {
	
	public static List<Instance> instances = new ArrayList<Instance>();
	
	static {
		XMLFileReader reader = new XMLFileReader("C:\\instances.xml");
	}
	
	public static int checkIfBossExists(String name) {
		int result = -1;
		for (Instance i: instances) {
			for (int index = 0; index < i.getBossmobs().size(); index++) {
				if (i.getBossmobs().get(index).getName().equalsIgnoreCase(name)) {
					result = index;
				}
			}
		}
		return result;
	}
}
